//
//  NRWCarSearchView.h
//  New_Runway
//
//  Created by 邢毅 on 2018/4/20.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import <UIKit/UIKit.h>

@class NRWCarSearchView;

@protocol NRWCarSearchViewDelegate<NSObject>

@optional

- (void)searchView:(NRWCarSearchView *)searchView leftBtnDidClick:(UIButton *)sender;

- (void)searchView:(NRWCarSearchView *)searchView rightBtnDidClick:(UIButton *)sender;

- (void)searchView:(NRWCarSearchView *)searchView textDidChange:(NSString *)text;

@end

@interface NRWCarSearchView : UITextField

@property (copy, nonatomic) NSString *leftImageName;

@property (copy, nonatomic) NSString *rightImageName;

@property (weak, nonatomic) id<NRWCarSearchViewDelegate> delegate_custom;

- (instancetype)initWithPlaceHold:(NSString *)placeHold
                    leftImageName:(NSString *)leftImageName
                   rightImageName:(NSString *)rightImageName;

@end
